package com.ruoyi.wbs.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.wbs.mapper.ContractorPaymentRecordMapper;
import com.ruoyi.wbs.domain.ContractorPaymentRecord;
import com.ruoyi.wbs.service.IContractorPaymentRecordService;

/**
 * 打款记录Service业务层处理
 * 
 * @author zhaogang
 * @date 2024-07-28
 */
@Service
public class ContractorPaymentRecordServiceImpl implements IContractorPaymentRecordService 
{
    @Autowired
    private ContractorPaymentRecordMapper contractorPaymentRecordMapper;

    /**
     * 查询打款记录
     * 
     * @param paymentId 打款记录主键
     * @return 打款记录
     */
    @Override
    public ContractorPaymentRecord selectContractorPaymentRecordByPaymentId(Long paymentId)
    {
        return contractorPaymentRecordMapper.selectContractorPaymentRecordByPaymentId(paymentId);
    }

    /**
     * 查询打款记录列表
     * 
     * @param contractorPaymentRecord 打款记录
     * @return 打款记录
     */
    @Override
    public List<ContractorPaymentRecord> selectContractorPaymentRecordList(ContractorPaymentRecord contractorPaymentRecord)
    {
        return contractorPaymentRecordMapper.selectContractorPaymentRecordList(contractorPaymentRecord);
    }

    /**
     * 新增打款记录
     * 
     * @param contractorPaymentRecord 打款记录
     * @return 结果
     */
    @Override
    public int insertContractorPaymentRecord(ContractorPaymentRecord contractorPaymentRecord)
    {
        return contractorPaymentRecordMapper.insertContractorPaymentRecord(contractorPaymentRecord);
    }

    /**
     * 修改打款记录
     * 
     * @param contractorPaymentRecord 打款记录
     * @return 结果
     */
    @Override
    public int updateContractorPaymentRecord(ContractorPaymentRecord contractorPaymentRecord)
    {
        return contractorPaymentRecordMapper.updateContractorPaymentRecord(contractorPaymentRecord);
    }

    /**
     * 批量删除打款记录
     * 
     * @param paymentIds 需要删除的打款记录主键
     * @return 结果
     */
    @Override
    public int deleteContractorPaymentRecordByPaymentIds(Long[] paymentIds)
    {
        return contractorPaymentRecordMapper.deleteContractorPaymentRecordByPaymentIds(paymentIds);
    }

    /**
     * 删除打款记录信息
     * 
     * @param paymentId 打款记录主键
     * @return 结果
     */
    @Override
    public int deleteContractorPaymentRecordByPaymentId(Long paymentId)
    {
        return contractorPaymentRecordMapper.deleteContractorPaymentRecordByPaymentId(paymentId);
    }
}
